<!doctype html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>常用组件</title>
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">

		<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
		<!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
		<!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.cn/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.cn/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
	</head>
	<body>

		<h3>
			<a href="https://blog.csdn.net/asd245025733/article/details/78061577">查看</a>
		</h3>

		<form class="form-inline" action="" method="post">
			<div class="form-group">
				<div class="input-group">
					<div class="input-group-addon">
						<span class="glyphicon glyphicon-envelope"></span>
					</div>
					<input type="email" name="email" class="form-control" placeholder="Email">
				</div>
			</div>
			<div class="form-group">
				<div class="input-group">
					<div class="input-group-addon">
						<span class="glyphicon glyphicon-lock"></span>
					</div>
					<input type="password" name="password" class="form-control" placeholder="password">
				</div>
			</div>
			<div class="form-group">
				<button type="submit" class="btn btn-primary">Submit</button>
			</div>
		</form>

		<script src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js"></script>
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

		<script
			src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-validator/0.5.3/js/bootstrapValidator.min.js">
		</script>
		<script src="js/lizhili.js"></script>
		<script type="text/javascript">
			$(function() {
				$('form').bootstrapValidator({
					message: 'This value is not valid',
					feedbackIcons: {
						valid: 'glyphicon glyphicon-ok',
						invalid: 'glyphicon glyphicon-remove',
						validating: 'glyphicon glyphicon-refresh'
					},
					fields: {
						email: {
							validators: {
								notEmpty: {
									message: '不能为空'
								},
								emailAddress: {
									message: '邮箱地址不正确'
								}
							}
						},
						password: {
							validators: {
								notEmpty: {
									message: '不能为空'
								},
								stringLength: {
									min: 6,
									max: 12,
									message: '6到12字符'
								}
							}
						}
					}
				});
			});
		</script>

	</body>
</html>
